package com.example.pattern.template;

public abstract class AbstractClass {

    void operator(){
        System.out.println("connect open");
        System.out.println("pre init");
        templateMethod();
        templateMethodV2();
        System.out.println("connect close");
    }

    /**
     * 实现具体流程
     */
    abstract void templateMethod();

    abstract void templateMethodV2();

}
